package com.bamboo.framework.framework.security.entity.enums;


import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @Author: GuoQing
 * @Date: 2019/1/3 10:32
 * @description 性别枚举类
 */
public enum GenderType implements IEnum {
  /**
   * 男
   */
  male(1, "男"),
  /**
   * 女
   */
  female(0, "女");


  private Integer value;
  private String desc;


  GenderType(final Integer value, final String desc) {
    this.value = value;
    this.desc = desc;
  }


  @Override
  public Integer getValue() {
    return this.value;
  }

  @JsonValue
  public String getDesc() {
    return this.desc;
  }

}
